//
//  SRHeaderCellTableViewCell.h
//  SportRing
//
//  Created by icelee on 14-11-1.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface SRTableViewCellModel : NSObject

@property (nonatomic, strong)UIImage *tipImage;
@property (nonatomic, copy)NSString *title;
@property (nonatomic, copy)NSString *content;
@property (nonatomic, assign)BOOL swichValue;

- (id)initWithTipImage:(UIImage *)tipImage title:(NSString*)title content:(NSString*)content switchValue:(BOOL)value;

@end

@protocol SRTableViewCellDelegate <NSObject>

@optional
-(void)switchValue:(BOOL)value type:(SR_SWITCH_TYPE)type;

@end

@interface SRTableViewCell : UITableViewCell

@property (nonatomic, weak)IBOutlet id<SRTableViewCellDelegate> srcDelegate;

@property (nonatomic, weak)IBOutlet UILabel *titleLabel;
@property (nonatomic, weak)IBOutlet UISwitch *swith;
@property (nonatomic, weak)IBOutlet UIImageView *tipImageView;
@property (nonatomic, weak)IBOutlet UILabel *contentLabel;

- (void)showSwitchButton;
- (void)hideSwitchButton;

- (void)setSRTableViewCellData:(SRTableViewCellModel *)model;

@end
